package org.dx.oho.service;

import org.dx.oho.dto.ShopExecution;
import org.dx.oho.entity.Shop;

import java.io.InputStream;
import java.util.List;

/**
 *
 * create by duanx 2021/1/31
 * @author dx
  */
public interface ShopService {
    /**
     * 添加店铺
     * @param shop 店铺信息
     * @param inputStream 店铺图片流
     * @param fileName 文件名
     * @return 返回结果信息
     */
    ShopExecution addShop(Shop shop, InputStream inputStream, String fileName);

    /**
     * 获取Shop实例
     * @param shop 查询条件
     * @return shop
     */
    List<Shop> getShop(Shop shop);
}
